package com.justinbuser.net
{
	
	[Bindable] public class ConnectionManager
	{
		private static var _instance:ConnectionManager;
		private static var connections:Vector.<PollingConnection> = new Vector.<PollingConnection>();
		
		public function ConnectionManager()
		{
			_instance=this;
		}
		
		public static function addConnection(urlToPoll:String, pollingClient:PollingClient, autoStart:Boolean=true, intervalDuration:Number=60, postData:Object=null):PollingConnection{
			var conn:PollingConnection = new PollingConnection(urlToPoll,pollingClient,autoStart,intervalDuration,postData);
			connections.push(conn);
			return conn;
		}

	}

}